<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/5/005
 * Time: 18:07
 */

namespace app\api\model;


use think\facade\Request;

class ProductDetails extends BaseModel {
    protected $hidden = ['update_time','delete_time', 'create_time'];

    public function getContentAttr($value) {
        return str_replace('src="/ueditor/php/upload/','src="'. config('setting.img_domain') .'/ueditor/php/upload/',$value);
    }
}